<?php
require_once '../../includes/global.php';
echo <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>更新数据</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
EOT;

$cleardate="TRUNCATE TABLE `lm_prod_v`";	//清楚数据

$update="
insert into lm_prod_v 
select * 
from lm_psv
";
(!isset($_REQUEST['op']))?$op='update':'';
switch ($_REQUEST['op']){
	case 'update':
		echo <<<EOT
			<div style="color:#5ab437;margin-top:100px;margin-left:20px;">
			
			您要现在更新产品分类列表吗?
			更新的过程中将会等待一段时间...
			<br />
			<br />
			<form action="produpdate_act.php" ><input type="submit" value="yes,i went to up..." /></form>
			</div>
EOT;
		break;
}
echo <<<EQT
</body>
</html>
EQT;
?>